﻿function Validate() {

    var obj_txtProductCode = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtProductCode_I');
    var obj_txtProductName = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtProductName_I');
    var obj_txtProductDescription = document.getElementById('ctl00_ctl00_ASPxSplitter1_Content_ContentSplitter_MainContent_popup_txtProductDescription_I');

    if (obj_txtProductCode.value == "") {
        alert('Kindly Specify Product Code.')
        obj_txtProductCode.focus();
        return false;
    }
    if (obj_txtProductName.value == "") {
        alert('Kindly Specify Product Name.')
        obj_txtProductName.focus();
        return false;
    }

    return true;
}